package ${serviceInfo.serviceClazz}.dto;

import lombok.Data;

import java.util.Date;

import jakarta.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;

@Data
public class ${paramName?cap_first} {
	<#list columns as item>
	
	<#if (item.columnType?index_of('timestamp') >= 0) || (item.columnType?index_of('datetime') >= 0)>
	/**
	 * ${item.columnRemark}(${item.tableName})
	 */
	@Schema(description = "${item.columnRemark}开始")
	private String ${item.javaCode}${TIMESTARTSTR};
	@Schema(description = "${item.columnRemark}结束")
	private String ${item.javaCode}${TIMEENDSTR};
	<#else>
	/**
	 * ${item.columnRemark}(${item.tableName})
	 */
	@Schema(description = "${item.columnRemark}")
	<#if (item.dataType="varchar")>
	@Size(max = ${item.characterMaximumLength?string('########')},message = "${item.javaCode}字段超过限长（${item.characterMaximumLength}）")
	</#if>
	private ${item.javaType} ${item.javaCode};
	</#if>
	</#list>
}